package com.lee.common.data.dao

import androidx.room.*
import com.lee.common.data.bean.User

@Dao
interface UserDao {

    @Query("SELECT * FROM user WHERE id= 0")
    fun getUser(): User?

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun saveUser(plants: User)

    @Update
    fun upDataUser(user: User)

}